<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 亲儿子选择器，只对亲儿子有效，孙子以及下一级都没有效果 */
        div > p {
            color: red;
        }
        /* div p {
            color: red;
        } */
    </style>
</head>
<body>
    <div>
        <span>
            <p>测试11</p>
            <p>测试12</p>
        </span>
        <p>儿子1</p>
        <p>儿子2</p>
        <p>儿子3</p>
    </div>
    <div>
        <ul>
            <li>dul1</li>
            <li>dul2</li>
            <li>dul3</li>
        </ul>
        <ol>
            <li>dol1</li>
            <li>dol2</li>
            <li>dol3</li>
        </ol>
    </div>
</body>
</html>